package com.jiantong.version.impl.dao;

import com.jiantong.version.model.Dictionary;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by mz on 25/8/17.
 *
 */
@Repository
public class DictionaryDao extends MyBatisDao<Dictionary>{

    /**
     * 根据类型查询字典
     * @param criteria 参数
     * @return List<Dictionary>
     */
    public List<Dictionary> findListByType(Map<String,Object> criteria){
        return getSqlSession().selectList(sqlId("findListByType"),criteria);
    }
}
